package com.grwx.omc.exception;


import lombok.Data;

/**
 * 基础异常
 */

public class BaseException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    /**
     * 状态码
     */
    private Integer status;

    /**
     * 异常信息
     */
    private String message;


    public BaseException() {

    }

    public BaseException(Integer status,String message) {
        this.status = status;
        this.message = message;
    }


    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
